<template>
  <div
    id="carousel-example-generic"
    class="carousel slide"
    data-ride="carousel"
  >
    <ol class="carousel-indicators">
      <li
        data-target="#carousel-example-generic"
        data-slide-to="0"
        class="active"
      ></li>
      <li data-target="#carousel-example-generic" data-slide-to="1"></li>
      <li data-target="#carousel-example-generic" data-slide-to="2"></li>
    </ol>

    <div class="carousel-inner">
      <div class="item active">
        <video width="1520px" height="578px" controls autoplay="autoplay 20000" muted loop style="object-fit:fill">
          <source src="../assets/yiji.mp4" type="video/mp4"/>
        </video>
        <div class="carousel-caption"></div>
      </div>
      <div class="item">
        <img
          src="https://www.uniqlo.cn/public/image/L1/2021/October/1004/1-T1.jpg"
          alt="..."
        />
        <div class="carousel-caption"></div>
      </div>
      <div class="item">
        <img
          src="https://www.uniqlo.cn/public/image/L1/2021/November/1106/6-T1.jpg"
          alt="..."
        />
        <div class="carousel-caption"></div>
      </div>
    </div>

    <a
      class="left carousel-control"
      href="#carousel-example-generic"
      role="button"
      data-slide="prev"
    >
      <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
      <span class="sr-only">Previous</span>
    </a>
    <a
      class="right carousel-control"
      href="#carousel-example-generic"
      role="button"
      data-slide="next"
    >
      <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
      <span class="sr-only">Next</span>
    </a>
      <p class="animate__animated animate__backInRight yiji">YIJI LIFE</p>
  </div>
</template>

<script>
export default {
  name: "HomeCarousel",
};
</script>
<style lang="scss">
  .yiji{
    color: white;
    font-size: 60px;
    position: absolute;
    top: 80px;
    left: 200px;
  }
  .animate__animated .animate__backInRight {
  --animate-duration: 5s;
   --animate-delay: 5s;
}
</style>